package com.java;


public class Java_20072493_NSW
{
	StringBuffer str = new StringBuffer("알기 쉽게 해설한 자바");
	
	public static void main(String[] args)
	{
		Java_20072493_NSW pro = new Java_20072493_NSW();
		pro.printEx1();
		pro.printEx2();
		pro.printEx3();
		pro.printEx4();
	}
	
	public void printEx1()
	{
		System.out.println(str);
	}
	
	public void printEx2()
	{
		StringBuffer tmp = str;
		tmp.replace(tmp.indexOf("자바"), tmp.indexOf("자바")+4, "JAVA");
		System.out.println(tmp);
	}
	
	public void printEx3()
	{
		StringBuffer tmp = str;
		tmp.insert(tmp.indexOf("해설한"), "충분히 ");
		System.out.println(tmp);
	}
	
	public void printEx4()
	{
		StringBuffer tmp = str;
		tmp.reverse();
		System.out.println(tmp);
	}
}